import request from '@/utils/request'

export async function edgeStylePageQuery(edgeStyle, paginator) {
  return await request({
    url: '/bicAdmin/edgeStyle/query',
    method: 'post',
    data: {
      'edgeStyle': edgeStyle,
      'paginator': paginator
    }
  })
}

export async function edgeStyleSave(edgeStyle) {
  return await request({
    url: '/bicAdmin/edgeStyle/save',
    method: 'post',
    data: edgeStyle
  })
}

export async function remoteValidateEdgeStyleName(systemUuid, name) {
  return await request({
    url: '/bicAdmin/edgeStyle/validateName/' + systemUuid + '/' + name,
    method: 'get',
  })
}

export async function remoteValidatesEdgeStyleKey(systemUuid, key) {
  return await request({
    url: '/bicAdmin/edgeStyle/validateKey/' + systemUuid + '/' + key,
    method: 'get',
  })
}

export async function edgeStyleLoad() {
  return await request({
    url: '/bicAdmin/edgeStyle/loadDefaultStyle',
    method: 'get',
  })
}
